package com.aaa.vegetablemarketexpress.service;

import com.aaa.vegetablemarketexpress.entity.Brand;
import com.aaa.vegetablemarketexpress.util.Page;
import com.github.pagehelper.PageInfo;

/**
 * @FileName: BrandService
 * @Description:
 * @Author: 张钰哲
 * @CreateTime: 2025/9/6 14:42
 * @Version: 1.0.0
 */

public interface BrandService {
    /**
     * 分页查询
     * @param page
     * @return
     */
    PageInfo<Brand> queryByPage(Page<Brand> page);

    /**
     * 根据id查询
     * @param brandId
     * @return
     */
    Brand queryByBrandId(Long brandId);

    /**
     * 添加
     * @param brand
     * @return
     */
    int add(Brand brand);

    /**
     * 修改
     * @param brand
     * @return
     */
    int update(Brand brand);

    /**
     * 删除
     * @param brandId
     * @return
     */
    int deleteByBrandId(Long brandId);
}
